# 作者：陈睿-cruise
# 2025年02月09日15时35分32秒
# 2979386061@qq.com
# try:
#     num=0
#     result=10/num
#     print(result)
# except Exception as e:
#     print('程序出现异常')
#     print(e)

try:
    f=open('python.txt','r')
except Exception as e:
    f=open('python.txt','w')
else:
    content=f.read()
    print(content)
finally:
    f.close()